import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { 
  Button, 
  Popup, 
  Toast,
  Dialog,
  Icon,
  Empty,
  Stepper,
  NavBar,
  List,
  PullRefresh,
  Skeleton
} from 'vant'
import 'vant/lib/index.css'

const app = createApp(App)

// 注册Vant组件
app.use(Button)
app.use(Popup)
app.use(Toast)
app.use(Dialog)
app.use(Icon)
app.use(Empty)
app.use(Stepper)
app.use(NavBar)
app.use(List)
app.use(PullRefresh)
app.use(Skeleton)

app.use(router)
app.mount('#app')

